@use "../../assets/scss/mixins/figure/imgLoadErr" as *;
@use "../../assets/scss/indicator" as *;
html {
  box-sizing: border-box;
  //根元素字体大小；10 / 16 = 62.5%，采用rem单位时，1rem = 10px
  // font-size: 62.5%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  &:before,
  &:after {
    box-sizing: inherit;
  }
}
body {
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  font-family: sans-serif;
  font-size: 14px;
  position: relative;
}
.indicator {
  @extend %indicator;
}
.wrapper {
  overflow: hidden;
  width: 800px;
  // height: 100%;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  p {
    font-size: 1.5rem;
    line-height: 1.5;
    text-indent: 2em;
    &:hover {
      span {
        background-position: left bottom;
        background-size: 100% 2px;
      }
    }
    span {
      // pointer-events: none;
      user-select: none;
      background: linear-gradient(to right, #ff7e5f, #feb47b);
      background-repeat: no-repeat;
      background-size: 0 2px;
      background-position: right bottom;
      transition: background-size 1s ease-in-out;
    }
  }
  .wonder {
    margin: 0;
    margin-top: 30px;
    padding-left: 0;
    list-style-type: none;
    color: #eee;
    box-shadow: 0 0.6px, 0 -0.6px;
    -webkit-text-fill-color: #333;
    cursor: pointer;
    li {
      line-height: 2.75rem;
      padding-left: 1rem;
      background-color: #fff;
      isolation: isolate;
      position: relative;

      &:not(:last-child)::after {
        content: "";
        display: block;
        border-top: 1px solid;
        transform: scaleY(0.51);
        margin-top: -1px;
      }
      [type="radio"] {
        appearance: none;
        all: initial;
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        &:checked {
          color: #009ff1;
          &::before,
          &::after {
            content: "";
            position: absolute;
          }
          &::before {
            //伪元素钩钩的效果
            top: 0;
            bottom: 0;
            right: 1rem;
            width: 0.6125rem;
            height: 0.325rem;
            margin: auto;
            border-left: 2px solid;
            border-bottom: 2px solid;
            transform: rotate(-45deg);
          }
          &::after {
            inset: 0;
            background-color: currentColor;
            mix-blend-mode: lighten;
          }
        }
        &:active {
          background: linear-gradient(#bbb1, #bbb1);
        }
      }
    }
  }

  #target {
    color: gray;
  }
  img {
    width: 128px;
    height: 96px;
    object-fit: cover;
    vertical-align: bottom;
    @include imgLoadErr;
  }
}
ui-overlay {
  position: absolute;
  background: red;
  mix-blend-mode: overlay;
  isolation: isolate;
  z-index: 9;
}
.space {
  width: 100%;
  height: 1000px;
  color: gray;
  background-color: goldenrod;
  text-align: center;
  border: 1px dotted;
  &::before {
    content: "";
    line-height: 666px;
  }
}
